<extend name="Base/common2"/>
<block name="body">
    <div class="wrap">
        <section id="contents">

            <style type="text/css">

                .app_setting .step {
                    width: 599px;
                }

            </style>

            <!-- <div class="setting_step app_setting">
                  <a class="step step_cur" href="{:U('Home/Public/auto_bind_0',array('id'=>$id))}">1.一键绑定公众号</a>
                  <a class="step " href="<empty name="id">javascript:;<else /> {:U('Home/Public/step_1',array('id'=>$id))}</empty>">2.配置公众平台</a>
                  <a class="step " href="<empty name="id">javascript:;<else /> {:U('Home/Public/step_2',array('id'=>$id))}</empty>">3.保存接口配置</a>

                  <a class="step step_cur_1" style="cursor:deault">2.保存接口配置</a>
           </div>  -->
            <include file="Addons/_nav"/>
            <div class="tab-content">
                <!-- 表单 -->
                <form class="form-horizontal bind_step_form" method="post"
                      action="{:U('Home/Public/step_2',array('id'=>$id))}" id="form">
                    <!-- 基础文档模型 -->
                    <div class="tab-pane in tab1" id="tab1">
                        <div class="item_wrap">
                            <div class="form-item cf toggle-fuwuqurl">
                                <label class="item-label"> URL(服务器地址)</label>

                                <p style="color: red">{$fuwuqurl}</p>
                            </div>
                            <div class="form-item cf toggle-mp_token">
                                <label class="item-label"> Token(令牌)</label>

                                <div class="controls">
                                    <input type="text" disabled="false" value="{$info.mp_token}" name="encodingaeskey"
                                           class="text input-large">
                                </div>
                            </div>


                            <div class="form-item cf toggle-appid">
                                <label class="item-label"> AppID <span class="check-tips"> （应用ID） </span></label>

                                <div class="controls">
                                    <input type="text" value="{$info.appid}" name="appid" class="text input-large">
                                </div>
                            </div>
                            <div class="form-item cf toggle-secret">
                                <label class="item-label"> AppSecret <span class="check-tips"> （应用密钥） </span></label>

                                <div class="controls">
                                    <input type="text" value="{$info.secret}" name="secret" class="text input-large">
                                </div>
                            </div>
                            <div class="form-item cf toggle-encodingaeskey">
                                <label class="item-label"> EncodingAESKey <span
                                        class="check-tips"> （安全模式下必填） </span></label>

                                <div class="controls">
                                    <input type="text" value="{$info.encodingaeskey}" name="encodingaeskey"
                                           class="text input-large">
                                </div>
                            </div>

                        </div>
                        <div class="form-item cf bind_step_form_next_item">
                            <button target-form="form-horizontal" type="submit" id="submit"
                                    class="btn submit-btn ajax-post">
                                <php> if($is_audit==0 && !$reg_audit_switch) { echo '提交审核'; } else { echo '保存'; }</php>

                            </button>
                            <br/>

                            <p style="padding:20px 0;">不知道填什么？<a href="http://mp.weixin.qq.com/" target="_blank">登陆微信公众平台</a>
                            </p>
                        </div>
                    </div>
                </form>
            </div>
            <!--帮助消息
            <div class="help_content">
                <h3>帮助消息</h3>
                <p>以上消息可以从公众平台里找到，如下图</p>
                <p><img src="{:SITE_URL}/Public/Home/images/help04.png" ></p>
            </div>
            -->
        </section>
    </div>
</block>
<block name="script">
    <link href="__STATIC__/datetimepicker/css/datetimepicker.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
    <php>if(C('COLOR_STYLE')=='blue_color') echo '
        <link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css?v={:SITE_VERSION}" rel="stylesheet"
              type="text/css">
        ';
    </php>
    <link href="__STATIC__/datetimepicker/css/dropdown.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.js"></script>
    <script type="text/javascript"
            src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js?v={:SITE_VERSION}"
            charset="UTF-8"></script>
    <script type="text/javascript">
        $('#submit').click(function () {
            $('#form').submit();
        });

        $(function () {
            var url = "{:U('Home/Public/lists')}";
            $(".sidenav_sub a[href='" + url + "']").parent().addClass("active");

            $('.time').datetimepicker({
                format: 'yyyy-mm-dd hh:ii',
                language: "zh-CN",
                minView: 0,
                autoclose: true
            });
            $('.date').datetimepicker({
                format: 'yyyy-mm-dd',
                language: "zh-CN",
                minView: 2,
                autoclose: true
            });
            showTab();
        });
    </script>
</block>
